Ext.setup({
		icon: 'icon.png'
	,	tabletStartupScreen: 'tablet_startup.png'
	,	phoneStartupScreen: 'phone_startup.png'
	,	glossOnIcon: false
	,	onReady: function() {
				
			Ext.regModel('SearchMenu', {
				fields: [
						{name: 'text', type: 'string'}
					,	{name: 'value', type: 'string'}
//				,	{name: 'leaf'}	
				]
			});

			Ext.regModel('SourceMenu', {
				fields: [
						{name: 'text',     type: 'string'},
						{name: 'value',    type: 'string'}
				]
			});
			
			var searchPanel = new Taxamatch.SearchMenu();
			var aboutPanel = new Taxamatch.AboutPanel();
			var searchForm = new Taxamatch.SearchForm();
			var searchResult = new Taxamatch.ResultPanel();
			var cardPanel = new Ext.Panel({
					fullscreen: true
				,	layout: 'card'	
				,	id: 'mainPanel'
				,	activeItem: 0
				,	tabBar: {
							dock: 'bottom'
						,	scroll: 'horizontal'
						,	sortable: true
						,	layout: {
								pack: 'center'
							}
					}
				,	items: [
							searchPanel  
						,	aboutPanel	
						,	searchForm
						,	searchResult
					]
			});			
		}
});